use chrono::naive::NaiveDate;
use chrono::NaiveDateTime;

#[derive(Clone, Debug, sqlx::FromRow, serde::Serialize, serde::Deserialize)]
pub struct StockIndex {
    pub id: Option<i32>,
    pub date: NaiveDate,
    #[sqlx(default)]
    pub index_at_last_day: Option<i32>,
    pub index_at_start: i32,
    pub index_at_noon: i32,
    pub index_at_end: i32,
    pub create_on: Option<NaiveDateTime>,
    pub create_by: Option<String>,
    pub modify_on: Option<NaiveDateTime>,
    pub modify_by: Option<String>,
}
